package ControlLayer;
import java.util.ArrayList;
import ModelLayer.*;

public class RentCtr
{
    private Rent rent;
    private CustomerList customerList;
    private Customer rentCustomer;
    private RentMachines rentMachines;
    private MachinesList machinesList;
    private DiscountList discountList;
    private Discount rentDiscount;

    public RentCtr()
    {
       machinesList = MachinesList.getInstance();
       discountList = DiscountList.getInstance();

    }
    
    public void createRent(long rentId, String name, double amount, double rentPrice, String dateFrom, String dateTill,double rentDays, int customerId )
    {
       customerList = CustomerList.getInstance();
       rent = new Rent(rentId, name, amount, rentPrice, dateFrom, dateTill, rentDays);
    }
    
    public void setName(String name, long rentId)
    {
        machinesList.findMachine(rentId).setName(name);
    }

}
